<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>GdaDataModelArray: GNOME Data Access 5 manual</title>
<meta name="generator" content="DocBook XSL Stylesheets V1.79.1">
<link rel="home" href="index.html" title="GNOME Data Access 5 manual">
<link rel="up" href="data_models.html" title="Data handling">
<link rel="prev" href="GdaDataAccessWrapper.html" title="GdaDataAccessWrapper">
<link rel="next" href="GdaRow.html" title="GdaRow">
<meta name="generator" content="GTK-Doc V1.32 (XML mode)">
<link rel="stylesheet" href="style.css" type="text/css">
</head>
<body bgcolor="white" text="black" link="#0000FF" vlink="#840084" alink="#0000FF">
<table class="navigation" id="top" width="100%" summary="Navigation header" cellpadding="2" cellspacing="5"><tr valign="middle">
<td width="100%" align="left" class="shortcuts">
<a href="#" class="shortcut">Top</a><span id="nav_description">  <span class="dim">|</span> 
                  <a href="#GdaDataModelArray.description" class="shortcut">Description</a></span><span id="nav_hierarchy">  <span class="dim">|</span> 
                  <a href="#GdaDataModelArray.object-hierarchy" class="shortcut">Object Hierarchy</a></span><span id="nav_interfaces">  <span class="dim">|</span> 
                  <a href="#GdaDataModelArray.implemented-interfaces" class="shortcut">Implemented Interfaces</a></span><span id="nav_properties">  <span class="dim">|</span> 
                  <a href="#GdaDataModelArray.properties" class="shortcut">Properties</a></span>
</td>
<td><a accesskey="h" href="index.html"><img src="home.png" width="16" height="16" border="0" alt="Home"></a></td>
<td><a accesskey="u" href="data_models.html"><img src="up.png" width="16" height="16" border="0" alt="Up"></a></td>
<td><a accesskey="p" href="GdaDataAccessWrapper.html"><img src="left.png" width="16" height="16" border="0" alt="Prev"></a></td>
<td><a accesskey="n" href="GdaRow.html"><img src="right.png" width="16" height="16" border="0" alt="Next"></a></td>
</tr></table>
<div class="refentry">
<a name="GdaDataModelArray"></a><div class="titlepage"></div>
<div class="refnamediv"><table width="100%"><tr>
<td valign="top">
<h2><span class="refentrytitle"><a name="GdaDataModelArray.top_of_page"></a>GdaDataModelArray</span></h2>
<p>GdaDataModelArray — An implementation of <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> based on a <a href="/usr/share/gtk-doc/html/glib/glib-Arrays.html#GArray"><span class="type">GArray</span></a></p>
</td>
<td class="gallery_image" valign="top" align="right"></td>
</tr></table></div>
<div class="refsect1">
<a name="GdaDataModelArray.stability-level"></a><h2>Stability Level</h2>
<a href="http://foldoc.org/Stable"><span class="acronym">Stable</span></a>, unless otherwise indicated
</div>
<div class="refsect1">
<a name="GdaDataModelArray.functions"></a><h2>Functions</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="functions_proto_type">
<col class="functions_proto_name">
</colgroup>
<tbody>
<tr>
<td class="function_type">
<a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaDataModelArray.html#gda-data-model-array-new" title="gda_data_model_array_new ()">gda_data_model_array_new</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaDataModelArray.html#gda-data-model-array-new-with-g-types" title="gda_data_model_array_new_with_g_types ()">gda_data_model_array_new_with_g_types</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaDataModelArray.html#gda-data-model-array-new-with-g-types-v" title="gda_data_model_array_new_with_g_types_v ()">gda_data_model_array_new_with_g_types_v</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaDataModelArray.html" title="GdaDataModelArray"><span class="returnvalue">GdaDataModelArray</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaDataModelArray.html#gda-data-model-array-copy-model" title="gda_data_model_array_copy_model ()">gda_data_model_array_copy_model</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaDataModelArray.html" title="GdaDataModelArray"><span class="returnvalue">GdaDataModelArray</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaDataModelArray.html#gda-data-model-array-copy-model-ext" title="gda_data_model_array_copy_model_ext ()">gda_data_model_array_copy_model_ext</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<a class="link" href="GdaRow.html" title="GdaRow"><span class="returnvalue">GdaRow</span></a> *
</td>
<td class="function_name">
<a class="link" href="GdaDataModelArray.html#gda-data-model-array-get-row" title="gda_data_model_array_get_row ()">gda_data_model_array_get_row</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GdaDataModelArray.html#gda-data-model-array-set-n-columns" title="gda_data_model_array_set_n_columns ()">gda_data_model_array_set_n_columns</a> <span class="c_punctuation">()</span>
</td>
</tr>
<tr>
<td class="function_type">
<span class="returnvalue">void</span>
</td>
<td class="function_name">
<a class="link" href="GdaDataModelArray.html#gda-data-model-array-clear" title="gda_data_model_array_clear ()">gda_data_model_array_clear</a> <span class="c_punctuation">()</span>
</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GdaDataModelArray.properties"></a><h2>Properties</h2>
<div class="informaltable"><table class="informaltable" border="0">
<colgroup>
<col width="150px" class="properties_type">
<col width="300px" class="properties_name">
<col width="200px" class="properties_flags">
</colgroup>
<tbody>
<tr>
<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a></td>
<td class="property_name"><a class="link" href="GdaDataModelArray.html#GdaDataModelArray--n-columns" title="The “n-columns” property">n-columns</a></td>
<td class="property_flags">Read / Write</td>
</tr>
<tr>
<td class="property_type"><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></td>
<td class="property_name"><a class="link" href="GdaDataModelArray.html#GdaDataModelArray--read-only" title="The “read-only” property">read-only</a></td>
<td class="property_flags">Read / Write</td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GdaDataModelArray.other"></a><h2>Types and Values</h2>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="other_proto_type">
<col class="other_proto_name">
</colgroup>
<tbody>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GdaDataModelArray.html#GdaDataModelArray-struct" title="struct GdaDataModelArray">GdaDataModelArray</a></td>
</tr>
<tr>
<td class="datatype_keyword">struct</td>
<td class="function_name"><a class="link" href="GdaDataModelArray.html#GdaDataModelArrayClass" title="struct GdaDataModelArrayClass">GdaDataModelArrayClass</a></td>
</tr>
<tr>
<td class="datatype_keyword"> </td>
<td class="function_name"><a class="link" href="GdaDataModelArray.html#GdaDataModelArrayPrivate" title="GdaDataModelArrayPrivate">GdaDataModelArrayPrivate</a></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect1">
<a name="GdaDataModelArray.object-hierarchy"></a><h2>Object Hierarchy</h2>
<pre class="screen">    <a href="/usr/share/gtk-doc/html/gobject/gobject-The-Base-Object-Type.html#GObject-struct">GObject</a>
    <span class="lineart">╰──</span> GdaDataModelArray
</pre>
</div>
<div class="refsect1">
<a name="GdaDataModelArray.implemented-interfaces"></a><h2>Implemented Interfaces</h2>
<p>
GdaDataModelArray implements
 <a class="link" href="GdaDataModel.html" title="GdaDataModel">GdaDataModel</a>.</p>
</div>
<div class="refsect1">
<a name="GdaDataModelArray.description"></a><h2>Description</h2>
<p>The <a class="link" href="GdaDataModelArray.html" title="GdaDataModelArray"><span class="type">GdaDataModelArray</span></a> object is a data model which internally uses a <a href="/usr/share/gtk-doc/html/glib/glib-Arrays.html#GArray"><span class="type">GArray</span></a> to index all its rows (represented
as <a class="link" href="GdaRow.html" title="GdaRow"><span class="type">GdaRow</span></a> objects). In this data model, all the data is stored in memory, which can be a memory limitation if the number
of rows is huge.
This type of data model is easy to use to store some temporary data, and has a random access mode (any value can be accessed
at any time without the need for an iterator).</p>
</div>
<div class="refsect1">
<a name="GdaDataModelArray.functions_details"></a><h2>Functions</h2>
<div class="refsect2">
<a name="gda-data-model-array-new"></a><h3>gda_data_model_array_new ()</h3>
<pre class="programlisting"><a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
gda_data_model_array_new (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> cols</code></em>);</pre>
<p>Creates a new <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> object without initializing the column
types. Using <a class="link" href="GdaDataModelArray.html#gda-data-model-array-new-with-g-types" title="gda_data_model_array_new_with_g_types ()"><code class="function">gda_data_model_array_new_with_g_types()</code></a> is usually better.</p>
<div class="refsect3">
<a name="gda-data-model-array-new.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>cols</p></td>
<td class="parameter_description"><p>number of columns for rows in this data model.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-data-model-array-new.returns"></a><h4>Returns</h4>
<p>a pointer to the newly created <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a>. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-model-array-new-with-g-types"></a><h3>gda_data_model_array_new_with_g_types ()</h3>
<pre class="programlisting"><a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
gda_data_model_array_new_with_g_types (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> cols</code></em>,
                                       <em class="parameter"><code>...</code></em>);</pre>
<p>Creates a new <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> object with the column types as
specified.</p>
<p><span class="annotation">[<a href="http://foldoc.org/rename-to"><span class="acronym">rename-to</span></a> gda_data_model_array_new_with_g_types_v]</span></p>
<div class="refsect3">
<a name="gda-data-model-array-new-with-g-types.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cols</p></td>
<td class="parameter_description"><p>number of columns for rows in this data model.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>...</p></td>
<td class="parameter_description"><p>types of the columns of the model to create as <a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a>, as many as indicated by <em class="parameter"><code>cols</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-data-model-array-new-with-g-types.returns"></a><h4>Returns</h4>
<p>a pointer to the newly created <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a>. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-model-array-new-with-g-types-v"></a><h3>gda_data_model_array_new_with_g_types_v ()</h3>
<pre class="programlisting"><a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="returnvalue">GdaDataModel</span></a> *
gda_data_model_array_new_with_g_types_v
                               (<em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> cols</code></em>,
                                <em class="parameter"><code><a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a> *types</code></em>);</pre>
<p>Creates a new <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> object with the column types as
specified.</p>
<p><span class="annotation">[<a href="http://foldoc.org/rename-to"><span class="acronym">rename-to</span></a> gda_data_model_array_new_with_g_types]</span></p>
<div class="refsect3">
<a name="gda-data-model-array-new-with-g-types-v.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>cols</p></td>
<td class="parameter_description"><p>number of columns for rows in this data model.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>types</p></td>
<td class="parameter_description"><p>array of types of the columns of the model to create as <a href="/usr/share/gtk-doc/html/gobject/gobject-Type-Information.html#GType"><span class="type">GType</span></a>, as many as indicated by <em class="parameter"><code>cols</code></em>
. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/array"><span class="acronym">array</span></a>]</span></td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-data-model-array-new-with-g-types-v.returns"></a><h4>Returns</h4>
<p>a pointer to the newly created <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a>. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>]</span></p>
</div>
<p class="since">Since: 4.2.6</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-model-array-copy-model"></a><h3>gda_data_model_array_copy_model ()</h3>
<pre class="programlisting"><a class="link" href="GdaDataModelArray.html" title="GdaDataModelArray"><span class="returnvalue">GdaDataModelArray</span></a> *
gda_data_model_array_copy_model (<em class="parameter"><code><a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> *src</code></em>,
                                 <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Makes a copy of <em class="parameter"><code>src</code></em>
 into a new <a class="link" href="GdaDataModelArray.html" title="GdaDataModelArray"><span class="type">GdaDataModelArray</span></a> object</p>
<div class="refsect3">
<a name="gda-data-model-array-copy-model.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>src</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> to copy data from</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-data-model-array-copy-model.returns"></a><h4>Returns</h4>
<p>a new data model, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>][<a href="http://foldoc.org/nullable"><span class="acronym">nullable</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-model-array-copy-model-ext"></a><h3>gda_data_model_array_copy_model_ext ()</h3>
<pre class="programlisting"><a class="link" href="GdaDataModelArray.html" title="GdaDataModelArray"><span class="returnvalue">GdaDataModelArray</span></a> *
gda_data_model_array_copy_model_ext (<em class="parameter"><code><a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> *src</code></em>,
                                     <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> ncols</code></em>,
                                     <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> *cols</code></em>,
                                     <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Like <a class="link" href="GdaDataModelArray.html#gda-data-model-array-copy-model" title="gda_data_model_array_copy_model ()"><code class="function">gda_data_model_array_copy_model()</code></a>, makes a copy of <em class="parameter"><code>src</code></em>
, but copies only some
columns.</p>
<div class="refsect3">
<a name="gda-data-model-array-copy-model-ext.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>src</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a> to copy data from</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>ncols</p></td>
<td class="parameter_description"><p>size of <em class="parameter"><code>cols</code></em>
</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cols</p></td>
<td class="parameter_description"><p>array of <em class="parameter"><code>src</code></em>
's columns to copy into the new array, not <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a>. </p></td>
<td class="parameter_annotations"><span class="annotation">[<a href="http://foldoc.org/array"><span class="acronym">array</span></a> length=ncols]</span></td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-data-model-array-copy-model-ext.returns"></a><h4>Returns</h4>
<p>a new data model, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20full"><span class="acronym">transfer full</span></a>][<a href="http://foldoc.org/nullable"><span class="acronym">nullable</span></a>]</span></p>
</div>
<p class="since">Since: 5.2.0</p>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-model-array-get-row"></a><h3>gda_data_model_array_get_row ()</h3>
<pre class="programlisting"><a class="link" href="GdaRow.html" title="GdaRow"><span class="returnvalue">GdaRow</span></a> *
gda_data_model_array_get_row (<em class="parameter"><code><a class="link" href="GdaDataModelArray.html" title="GdaDataModelArray"><span class="type">GdaDataModelArray</span></a> *model</code></em>,
                              <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> row</code></em>,
                              <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Error-Reporting.html#GError"><span class="type">GError</span></a> **error</code></em>);</pre>
<p>Get a pointer to a row in <em class="parameter"><code>model</code></em>
</p>
<div class="refsect3">
<a name="gda-data-model-array-get-row.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>model</p></td>
<td class="parameter_description"><p>a <a class="link" href="GdaDataModelArray.html" title="GdaDataModelArray"><span class="type">GdaDataModelArray</span></a> object</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>row</p></td>
<td class="parameter_description"><p>row number (starting from 0)</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>error</p></td>
<td class="parameter_description"><p>a place to store errors, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a></p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
<div class="refsect3">
<a name="gda-data-model-array-get-row.returns"></a><h4>Returns</h4>
<p>the <a class="link" href="GdaRow.html" title="GdaRow"><span class="type">GdaRow</span></a>, or <a href="/usr/share/gtk-doc/html/glib/glib-Standard-Macros.html#NULL:CAPS"><code class="literal">NULL</code></a> if an error occurred. </p>
<p><span class="annotation">[<a href="http://foldoc.org/transfer%20none"><span class="acronym">transfer none</span></a>]</span></p>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-model-array-set-n-columns"></a><h3>gda_data_model_array_set_n_columns ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gda_data_model_array_set_n_columns (<em class="parameter"><code><a class="link" href="GdaDataModelArray.html" title="GdaDataModelArray"><span class="type">GdaDataModelArray</span></a> *model</code></em>,
                                    <em class="parameter"><code><a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gint"><span class="type">gint</span></a> cols</code></em>);</pre>
<p>Sets the number of columns for rows inserted in this model. 
<em class="parameter"><code>cols</code></em>
 must be greated than or equal to 0.</p>
<p>Also clears <em class="parameter"><code>model</code></em>
's contents.</p>
<div class="refsect3">
<a name="gda-data-model-array-set-n-columns.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody>
<tr>
<td class="parameter_name"><p>model</p></td>
<td class="parameter_description"><p>the <a class="link" href="GdaDataModelArray.html" title="GdaDataModelArray"><span class="type">GdaDataModelArray</span></a>.</p></td>
<td class="parameter_annotations"> </td>
</tr>
<tr>
<td class="parameter_name"><p>cols</p></td>
<td class="parameter_description"><p>number of columns for rows this data model should use.</p></td>
<td class="parameter_annotations"> </td>
</tr>
</tbody>
</table></div>
</div>
</div>
<hr>
<div class="refsect2">
<a name="gda-data-model-array-clear"></a><h3>gda_data_model_array_clear ()</h3>
<pre class="programlisting"><span class="returnvalue">void</span>
gda_data_model_array_clear (<em class="parameter"><code><a class="link" href="GdaDataModelArray.html" title="GdaDataModelArray"><span class="type">GdaDataModelArray</span></a> *model</code></em>);</pre>
<p>Frees all the rows in <em class="parameter"><code>model</code></em>
.</p>
<div class="refsect3">
<a name="gda-data-model-array-clear.parameters"></a><h4>Parameters</h4>
<div class="informaltable"><table class="informaltable" width="100%" border="0">
<colgroup>
<col width="150px" class="parameters_name">
<col class="parameters_description">
<col width="200px" class="parameters_annotations">
</colgroup>
<tbody><tr>
<td class="parameter_name"><p>model</p></td>
<td class="parameter_description"><p>the model to clear.</p></td>
<td class="parameter_annotations"> </td>
</tr></tbody>
</table></div>
</div>
</div>
</div>
<div class="refsect1">
<a name="GdaDataModelArray.other_details"></a><h2>Types and Values</h2>
<div class="refsect2">
<a name="GdaDataModelArray-struct"></a><h3>struct GdaDataModelArray</h3>
<pre class="programlisting">struct GdaDataModelArray;</pre>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataModelArrayClass"></a><h3>struct GdaDataModelArrayClass</h3>
<pre class="programlisting">struct GdaDataModelArrayClass {
	GObjectClass              parent_class;
};
</pre>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataModelArrayPrivate"></a><h3>GdaDataModelArrayPrivate</h3>
<pre class="programlisting">typedef struct _GdaDataModelArrayPrivate GdaDataModelArrayPrivate;</pre>
</div>
</div>
<div class="refsect1">
<a name="GdaDataModelArray.property-details"></a><h2>Property Details</h2>
<div class="refsect2">
<a name="GdaDataModelArray--n-columns"></a><h3>The <code class="literal">“n-columns”</code> property</h3>
<pre class="programlisting">  “n-columns”                <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#guint"><span class="type">guint</span></a></pre>
<p>The number of columns in the model.</p>
<p>Owner: GdaDataModelArray</p>
<p>Flags: Read / Write</p>
<p>Default value: 0</p>
</div>
<hr>
<div class="refsect2">
<a name="GdaDataModelArray--read-only"></a><h3>The <code class="literal">“read-only”</code> property</h3>
<pre class="programlisting">  “read-only”                <a href="/usr/share/gtk-doc/html/glib/glib-Basic-Types.html#gboolean"><span class="type">gboolean</span></a></pre>
<p>Whether data model can be modified.</p>
<p>Owner: GdaDataModelArray</p>
<p>Flags: Read / Write</p>
<p>Default value: FALSE</p>
</div>
</div>
<div class="refsect1">
<a name="GdaDataModelArray.see-also"></a><h2>See Also</h2>
<p><a class="link" href="GdaDataModel.html" title="GdaDataModel"><span class="type">GdaDataModel</span></a></p>
</div>
</div>
<div class="footer">
<hr>Generated by GTK-Doc V1.32</div>
</body>
</html>